<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\core\utils\Convert | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.core.utils.html" title="Summary of application\core\utils"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li>
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li class="active">
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-application.core.utils.Api.html">Api</a></li>
				<li><a href="class-application.core.utils.ApiCode.html">ApiCode</a></li>
				<li><a href="class-application.core.utils.Attach.html">Attach</a></li>
				<li><a href="class-application.core.utils.Cache.html">Cache</a></li>
				<li><a href="class-application.core.utils.Cloud.html">Cloud</a></li>
				<li class="active"><a href="class-application.core.utils.Convert.html">Convert</a></li>
				<li><a href="class-application.core.utils.Credit.html">Credit</a></li>
				<li><a href="class-application.core.utils.Database.html">Database</a></li>
				<li><a href="class-application.core.utils.DateTime.html">DateTime</a></li>
				<li><a href="class-application.core.utils.Env.html">Env</a></li>
				<li><a href="class-application.core.utils.File.html">File</a></li>
				<li><a href="class-application.core.utils.Ftp.html">Ftp</a></li>
				<li><a href="class-application.core.utils.IBOS.html">IBOS</a></li>
				<li><a href="class-application.core.utils.Image.html">Image</a></li>
				<li><a href="class-application.core.utils.Mail.html">Mail</a></li>
				<li><a href="class-application.core.utils.Module.html">Module</a></li>
				<li><a href="class-application.core.utils.Org.html">Org</a></li>
				<li><a href="class-application.core.utils.Page.html">Page</a></li>
				<li><a href="class-application.core.utils.PHPExcel.html">PHPExcel</a></li>
				<li><a href="class-application.core.utils.String.html">String</a></li>
				<li><a href="class-application.core.utils.System.html">System</a></li>
				<li><a href="class-application.core.utils.Upgrade.html">Upgrade</a></li>
				<li><a href="class-application.core.utils.Url.html">Url</a></li>
				<li><a href="class-application.core.utils.WebSite.html">WebSite</a></li>
				<li><a href="class-application.core.utils.Xml.html">Xml</a></li>
				<li><a href="class-application.core.utils.XMLParse.html">XMLParse</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class Convert</h1>











	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.core.html">core</a>\<a href="namespace-application.core.utils.html">utils</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2013 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/core/utils/Convert.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="ConvertBytes" id="_ConvertBytes">

			<td class="attributes"><code>
				 public static
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_ConvertBytes">#</a>
			<code>ConvertBytes( <span>integer <var>$val</var></span> )</code>

			<div class="description short">
				<p>根据数值计算出文件大小</p>
			</div>

			<div class="description detailed hidden">
				<p>根据数值计算出文件大小</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$val</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="sizeCount" id="_sizeCount">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_sizeCount">#</a>
			<code>sizeCount( <span>integer <var>$size</var></span> )</code>

			<div class="description short">
				<p>字节格式化单位</p>
			</div>

			<div class="description detailed hidden">
				<p>字节格式化单位</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$size</var></dt>
						<dd>大小(字节)</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>返回格式化后的文本
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="formatDate" id="_formatDate">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_formatDate">#</a>
			<code>formatDate( <span>string <var>$timestamp</var></span>, <span>string <var>$format</var> = <span class="php-quote">'dt'</span></span>, <span>string <var>$timeOffset</var> = <span class="php-quote">'9999'</span></span>, <span>string <var>$uformat</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>格式化时间</p>
			</div>

			<div class="description detailed hidden">
				<p>格式化时间</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$timestamp</var></dt>
						<dd>时间戳</dd>
						<dt><var>$format</var></dt>
						<dd>dt=日期时间 d=日期 t=时间 u=个性化 其他=自定义 默认为'dt'</dd>
						<dt><var>$timeOffset</var></dt>
						<dd>时区偏移</dd>
						<dt><var>$uformat</var></dt>
						<dd>用户自定义格式</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="RGBToHex" id="_RGBToHex">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_RGBToHex">#</a>
			<code>RGBToHex( <span>string <var>$rgb</var></span> )</code>

			<div class="description short">
				<p>RGB 转 十六进制</p>
			</div>

			<div class="description detailed hidden">
				<p>RGB 转 十六进制</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$rgb</var></dt>
						<dd>RGB颜色的字符串 如：rgb(255,255,255);</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>十六进制颜色值 如：#FFFFFF
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="hexColorToRGB" id="_hexColorToRGB">

			<td class="attributes"><code>
				 public static
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_hexColorToRGB">#</a>
			<code>hexColorToRGB( <span>string <var>$hexColor</var></span> )</code>

			<div class="description short">
				<p>十六进制颜色转 RGB</p>
			</div>

			<div class="description detailed hidden">
				<p>十六进制颜色转 RGB</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$hexColor</var></dt>
						<dd>十六颜色 ,如：#ff00ff</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br>RGB数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="convertIp" id="_convertIp">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_convertIp">#</a>
			<code>convertIp( <span>string <var>$ip</var></span> )</code>

			<div class="description short">
				<p>转换IP</p>
			</div>

			<div class="description detailed hidden">
				<p>转换IP</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ip</var></dt>
						<dd>要转换的ip</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="convertTinyIp" id="_convertTinyIp">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_convertTinyIp">#</a>
			<code>convertTinyIp( <span>type <var>$ip</var></span>, <span>type <var>$ipDataFile</var></span> )</code>

			<div class="description short">
				<p>转换IP (简单版本)</p>
			</div>

			<div class="description detailed hidden">
				<p>转换IP (简单版本)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ip</var></dt>
						<dd></dd>
						<dt><var>$ipDataFile</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="convertFullIp" id="_convertFullIp">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_convertFullIp">#</a>
			<code>convertFullIp( <span>string <var>$ip</var></span>, <span>string <var>$ipDataFile</var></span> )</code>

			<div class="description short">
				<p>转换IP (全格式ip数据库版本)</p>
			</div>

			<div class="description detailed hidden">
				<p>转换IP (全格式ip数据库版本)</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$ip</var></dt>
						<dd>要转换的ip地址</dd>
						<dt><var>$ipDataFile</var></dt>
						<dd>ip数据库文件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>转换结果
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="implodeArray" id="_implodeArray">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_implodeArray">#</a>
			<code>implodeArray( <span>array <var>$array</var></span>, <span>array <var>$skip</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>转换一个数组为字符串</p>
			</div>

			<div class="description detailed hidden">
				<p>转换一个数组为字符串</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$array</var></dt>
						<dd>待处理的数组</dd>
						<dt><var>$skip</var></dt>
						<dd>要跳过处理的数组参数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>处理后的字符串
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getSubByKey" id="_getSubByKey">

			<td class="attributes"><code>
				 public static
				返回新的一维数组
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getSubByKey">#</a>
			<code>getSubByKey( <span> <var>$pArray</var></span>, <span> <var>$pKey</var> = <span class="php-quote">&quot;&quot;</span></span>, <span> <var>$pCondition</var> = <span class="php-quote">&quot;&quot;</span> </span> )</code>

			<div class="description short">
				<p>取一个二维数组中的每个数组的固定的键知道的值来形成一个新的一维数组</p>
			</div>

			<div class="description detailed hidden">
				<p>取一个二维数组中的每个数组的固定的键知道的值来形成一个新的一维数组</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$pArray</var></dt>
						<dd>一个二维数组</dd>
						<dt><var>$pKey</var></dt>
						<dd>数组的键的名称</dd>
						<dt><var>$pCondition</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						返回新的一维数组
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="ToChinaseNum" id="_ToChinaseNum">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_ToChinaseNum">#</a>
			<code>ToChinaseNum( <span>integer <var>$num</var></span> )</code>

			<div class="description short">
				<p>转换一个阿拉伯数字为中文数字</p>
			</div>

			<div class="description detailed hidden">
				<p>转换一个阿拉伯数字为中文数字</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$num</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>转换后的中文数字
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="iIconv" id="_iIconv">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_iIconv">#</a>
			<code>iIconv( <span>&lt;string&gt; <var>$str</var></span>, <span>&lt;string&gt; <var>$inCharset</var></span>, <span>&lt;string&gt; <var>$outCharset</var> = CHARSET</span>, <span>&lt;boolean&gt; <var>$forceTable</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>编码转换</p>
			</div>

			<div class="description detailed hidden">
				<p>编码转换</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd>要转码的字符</dd>
						<dt><var>$inCharset</var></dt>
						<dd>输入字符集</dd>
						<dt><var>$outCharset</var></dt>
						<dd>输出字符集(默认当前)</dd>
						<dt><var>$forceTable</var></dt>
						<dd>强制使用码表(默认不强制)</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getPY" id="_getPY">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getPY">#</a>
			<code>getPY( <span>type <var>$string</var></span>, <span>type <var>$first</var> = <span class="php-keyword1">false</span></span>, <span> <var>$phonetic</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>获取$string的拼音</p>
			</div>

			<div class="description detailed hidden">
				<p>获取$string的拼音</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$string</var></dt>
						<dd>词条字符串</dd>
						<dt><var>$first</var></dt>
						<dd>是否只取首字</dd>
						<dt><var>$phonetic</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="unescape" id="_unescape">

			<td class="attributes"><code>
				 public static
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_unescape">#</a>
			<code>unescape( <span>string <var>$str</var></span> )</code>

			<div class="description short">
				<p>模拟JS的unescape函数，解码 %u6D4B %u8BD5 %u6A21 %u677F %u54AF 诸如此类的字符</p>
			</div>

			<div class="description detailed hidden">
				<p>模拟JS的unescape函数，解码 %u6D4B %u8BD5 %u6A21 %u677F %u54AF 诸如此类的字符</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$str</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="exportCsv" id="_exportCsv">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_exportCsv">#</a>
			<code>exportCsv( <span>string <var>$name</var></span>, <span>array <var>$header</var></span>, <span>array <var>$body</var></span> )</code>

			<div class="description short">
				<p>通用导出CSV函数</p>
			</div>

			<div class="description detailed hidden">
				<p>通用导出CSV函数</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$name</var></dt>
						<dd>文件名</dd>
						<dt><var>$header</var></dt>
						<dd>头部</dd>
						<dt><var>$body</var></dt>
						<dd>与头部表头对应的数据</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
			</table>
		</div>











</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
